<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
  <meta charset="utf-8">
  <title>成都市团校</title>
  <script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
</head>

<body>
  <div id="app"></div>
  <!-- built files will be auto injected -->
</body>

<script>
  var htmlNode = document.documentElement
  var menu_i = document.getElementsByClassName('menu_i')
  var ul_i = document.getElementsByClassName('ul_i')
//  console.info(menu_i)
//  console.info(ul_i)
  function htmlEvent(e) {
    ul_i[0].style.display='none'
    htmlNode.removeEventListener('click',htmlEvent);
    e.stopPropagation();

  }
  menu_i[0].addEventListener("click",function (e){
//    console.log(ul_i[0].style.display)
//    if(ul_i[0].style.display=='none'){
//      ul_i[0].style.display='block'
//    } else{
//      ul_i[0].style.display='none'
//    }
    if(ul_i[0].style.display=='block'){
      ul_i[0].style.display='none'
    } else{
      ul_i[0].style.display='block'
    }
    e.stopPropagation();

    htmlNode.addEventListener('click',htmlEvent)

  },false)


</script>
</html>

